﻿using System;
using System.Windows.Forms;

namespace HMaker.Events
{
    /// <summary>
    /// 当一个CommonList的项目被选择时,发射的事件使用此参数
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class SelectItemArgs<T> : EventArgs
    {
        public T Item { get; }

        public ListViewItem LVI { get; }

        /// <summary>
        /// 初始化一个新的事件参数
        /// </summary>
        /// <param name="item"></param>
        /// <param name="lvi"></param>
        public SelectItemArgs(T item, ListViewItem lvi)
        {
            Item = item;
            LVI = lvi;
        }
    }
}
